﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.ReportServices
{
    public class BanTinReportService:IBanTinReportService
    {
        private IBanTinRepository _banTinRepository;
        public BanTinReportService(IBanTinRepository banTinRepository)
        {
            _banTinRepository = banTinRepository;
        }
        public BanTinDTO GetBanTinById(Guid banTinID)
        {
            return _banTinRepository.GetBanTinById(banTinID);
        }
        public IEnumerable<BanTinDTO> GetAllBanTin()
        {
            return _banTinRepository.GetAllBanTin();
        }
        public IEnumerable<BanTinDTO> GetTopNumbersBanTin(int topNumber, int quyentruycap)
        {
            return _banTinRepository.GetTopNumbersBanTin(topNumber, quyentruycap);
        }
        public IEnumerable<BanTinDTO> GetTopNumbersBanTin2(int topNumber){
            return _banTinRepository.GetTopNumbersBanTin2(topNumber);
        }        
    }
}
